//
//  QYToolBar.swift
//  QingYuJSQ
//
//  Created by 李东 on 2024/4/5.
//

import UIKit

class QYToolBar: UIView {
    
    var clickCallBack:((Bool) -> Void)?

    var contentView: UIView!
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        contentView = loadViewFromNib()
        contentView.frame = self.bounds
        addSubview(contentView)
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    @IBAction func leftHandle(_ sender: Any) {
        clickCallBack?(true)
    }
    
    @IBAction func rightHandle(_ sender: Any) {
        clickCallBack?(false)
    }
    
    
}
